Skip to content

Area plates: shadowless and centred, and a book stack for Education - #1313

Merged
LukasWallrich merged 4 commits into
rebrand-doorsfrom
centre-area-plates
Nov 25, 2026
Merged

LukasWallrich merged 4 commits into
rebrand-doorsfrom
centre-area-plates

Conversation

@LukasWallrich

@LukasWallrich LukasWallrich commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Each area plate's ground shadow falls to the right. Centring the whole image therefore pushed the bricks left of centre. On phones the shadow also shrank the small icons. This PR also replaces the education plate.

Shadowless plates

  • scripts/rebrand/area_plate_bricks.py writes shadowless copies as assets/images/doors/area-<area>-bricks.webp. The shadow is pure black at up to 18% opacity (a Three.js ShadowMaterial), so the script subtracts it and restores the opacity and colour of brick edges that sat over it. It then trims each copy to its bricks.
  • The homepage and welcome-page doors (via the new layouts/partials/doors/area_plate.html) show these copies. So do the single plates on the resources, topic, earlier-cluster, Educators' Corner and Replication Hub pages. They all centre with plain object-fit: contain, with no offsets.

Education: a book stack under a mortarboard

  • This replaces the pop-up gatefold. It is candidate A from Claude in the area-plate exploration (see Area plates: a pop-up book, a replication notebook and a shared table #1310).
  • Its renderer is committed as assets/js/castle/education-render.js. It takes its brick system, lights and camera scale from the castle.
  • render_area_illustrations.py now renders each plate with its own renderer: the harness takes ?renderer=, and the script accepts area names. Research and community re-render byte-identical.
  • Alt text follows the new picture on every page that shows it.

The first commit centred the shadowed bricks using measured bounds. The second commit replaces that with the shadowless copies, which looked better at every width.

Checked in screenshots at 1440 and 390 px on the homepage, welcome page, resources, an earlier cluster, Educators' Corner and a Replication Hub page. check_seo_html.py passes on a full build.

Homepage, desktop

Homepage areas at 1440 px, before and after

Homepage, phone (390 px)

Homepage areas at 390 px, before and after

Welcome page, desktop

Welcome page areas at 1440 px, before and after

Welcome page, phone (390 px)

Welcome page areas at 390 px, before and after

Teaching resources, desktop

Teaching resources header at 1440 px, before and after

🤖 Generated with Claude Code

@LukasWallrich
LukasWallrich requested a review from a team as a code owner November 25, 2026 17:24
@github-actions

Copy link
Copy Markdown
Contributor

👍 All content rules passed (WebP images/references and canonical doi.org links).

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 8 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

✅ Spell Check Passed

No spelling issues found when checking 15 changed file(s)! 🎉

@LukasWallrich LukasWallrich changed the title Centre the area plates on their bricks, not bricks plus shadow Show the area plates without their ground shadow, so the bricks sit centred Nov 25, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 11 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread scripts/rebrand/area_plate_bricks.py Resolved
@LukasWallrich LukasWallrich changed the title Show the area plates without their ground shadow, so the bricks sit centred Area plates: shadowless and centred, and a book stack for Education Nov 25, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 14 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread assets/js/castle/education-render.js Resolved
LukasWallrich and others added 4 commits November 25, 2026 17:46
Each plate's ground shadow falls to the right, so centring the whole image put
the bricks left of centre. scripts/rebrand/area_plate_bounds.py measures where
the opaque bricks sit (assets/images/doors/area-plates.json), and the new
doors/area_plate partial passes those bounds to CSS. On wider screens the
bricks are centred and keep their shadow; the small phone icons, and the
welcome page's phone plates, crop to the bricks so the long shadow no longer
shrinks them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shadow fell to the right, so the bricks sat left of centre, and in the
phone icons it shrank them. scripts/rebrand/area_plate_bricks.py subtracts the
shadow (pure black at up to 18% opacity) and trims each plate to its bricks as
area-<area>-bricks.webp; the homepage and welcome doors show those, centred
without offsets. This replaces the measured-bounds approach in the previous
commit. Other pages keep the shadowed plates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pop-up gatefold is replaced with the book stack from the area-plate
exploration. Its renderer is committed as assets/js/castle/education-render.js,
and render_area_illustrations.py now renders each plate with its own renderer
(the harness takes ?renderer=); research and community re-render unchanged.
Alt text follows the new picture everywhere it appears.

The resources, topic, earlier-cluster, Educators' Corner and Replication Hub
pages now show the shadowless copies too, so their plates also sit centred.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brickGeometry subtracted the joint gap from every dimension, so the 0.006
page-line strips got negative height and depth. The gap now applies only to
dimensions larger than twice the gap, and the corner radius never exceeds a
third of the smallest side. The re-rendered plate shows the same stack with
finer page lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LukasWallrich
LukasWallrich merged commit 4109940 into rebrand-doors Nov 25, 2026
12 of 14 checks passed
@LukasWallrich
LukasWallrich deleted the centre-area-plates branch November 25, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant